package com.wikidot.designpatterns.strategy;

public class Client {
	public static void main(String[] args) {
		Context context;

		/*
		 * Create context object, configure it with strategy object that is
		 * desired to use in subsequent calls.
		 */
		context = new Context(new ZipCompression());
		context.storeFile("file.zip", "test content");

		/*
		 * Create different context with different strategy object. Subsequent
		 * calls on context object will behave in different way that in former
		 * case - the strategy has changed.
		 */
		context = new Context(new RarCompression());
		context.storeFile("file.rar", "test content");
	}
}
